package edu.ncsu.csc.ip.common;

public class Log {

	private static boolean LOG_DISABLED = false;
	
	private static boolean ERR_LOG_DISABLED = false;

	public static void printMessage(String text, String message) {
		if (!LOG_DISABLED) {
			System.out.println("----------- "+text+" -------------");
			System.out.println("[");
			if (message != null) {
				System.out.println(message);
			} else {
				System.out.println("Message is Empty.");
			}

			System.out.println("]");
			System.out
					.println(" ------------------------------------------------  ");
		}
	}

	public static void println(String text) {
		if (!LOG_DISABLED)
			System.out.println(text);
	}

	public static void print(String text) {
		if (!LOG_DISABLED)
			System.out.print(text);
	}

	public static void err(String text) {
		if (!ERR_LOG_DISABLED)
			System.err.print(text);
	}
}
